<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
        <%@page import="java.util.List" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<form method = "get" action="SearchByGroup">

  group:<input type="text" name="group">
  <input type="submit" value="Submit">
</form>

<p></p><p></p>

    <table>
      <tbody>
        <tr>
          <th>First Name</th>
          <th>Last Name</th>
          <th>E-mail</th>
            <th>street</th>
          <th>country</th>
          <th>zip</th>
          <th>city</th>
          <th>PhoneType</th>
          <th>PhoneNumber</th>
          
        
        
        </tr>
        <%
          List lists = (List) request.getAttribute("list");
           if(lists==null)return;
          for (int i = 0; i < lists.size(); i++) {
            Object[] list = (Object[])lists.get(i);
            out.println("<tr>");
            for (int j = 0; j < list.length; j++) {
              out.println("<td>");
              out.println(list[j]);
              out.println("</td>");
            }
            out.println("</tr>");
          }
        %>
      </tbody>
    </table>

</body>
</html>